package test;

import org.ddmf.frame.service.AcenetFrameService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;



/**
 * Spring bean測試
 * @author JXYEHX
 *
 */
public class Adlogintest {

	
	public static void main(String[] args)  {
		ClassPathXmlApplicationContext appctx = (ClassPathXmlApplicationContext)getCtx();
		System.out.println(appctx.getDisplayName()+"  START");

		AcenetFrameService ace = (AcenetFrameService)appctx.getBean("acenetFrameService");

		System.out.println("result:"+ace.verifyNtlmAccount("jxyehx", "zaq12wsX"));
		
		System.out.println(appctx.getDisplayName()+"  END");
		
		System.exit(0);

	}

	public static ApplicationContext getCtx()
	{
		String[] paths = { "spring/*.xml" };
		ApplicationContext ctx =new ClassPathXmlApplicationContext(paths);
		return ctx;
	}

	
}
